#!/bin/bash

rm -rf ../crawler-web/src/main/resources/templates/login.html
rm -rf ../crawler-web/src/main/resources/templates/success.html
rm -rf ../crawler-web/src/main/resources/templates/message.html
rm -rf ../crawler-web/src/main/resources/templates/admin.html
rm -rf ../crawler-web/src/main/resources/static/static/
rm -rf ../crawler-web/src/main/resources/static/index.html

cp ./build/index.html ../crawler-web/src/main/resources/static/index.html
cp -r ./build/static ../crawler-web/src/main/resources/static/static
cp ./build/login.html ../crawler-web/src/main/resources/templates/login.html
cp ./build/success.html ../crawler-web/src/main/resources/templates/success.html
cp ./build/message.html ../crawler-web/src/main/resources/templates/message.html
cp ./build/admin.html ../crawler-web/src/main/resources/templates/admin.html
